/**
 * Created by abiu on 2016-03-10.
 */
function* genFuncWithReturn() {
    yield 'a';
    yield 'b';
    return 'The result';
}
function* logReturned(genObj) {
    var result = yield* genObj;
    console.log(result);
}

var a = [logReturned(genFuncWithReturn())];
console.log(a)
